<html>
<head>
  <title>Books: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
<script>
	function addAuthor() {
		var hiddenBookAuthor = document.getElementById("hiddenAuthor");
		var newBookAuthor = hiddenBookAuthor.cloneNode(true);
		newBookAuthor.style.display = "inline";

		var authors = document.getElementById("authors");
		authors.appendChild(newBookAuthor);
	}

	function removeAuthor(author) {
		var authors = document.getElementById("authors");
		authors.removeChild(author);
	}
</script>
</head>
<body>

<p style="color: green"><%= flash[:notice] %></p>

<%= @content_for_layout %>
<br/>
<%= link_to "Go back to the main menu", {:controller => 'alexandria'}%>

</body>
</html>
